/**
 * 
 */
package fr.limsi.seven;

import java.awt.Component;
import java.awt.Graphics;

import javax.swing.JPanel;

/**
 * @author durand
 */
public class JPanelForStar extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void paint(Graphics g) {
		g.clearRect(0, 0, getWidth(), getHeight());
		super.paint(g);
	}

	@Override
	public Component add(Component c) {
		Component cN = super.add(c);
		this.getRootPane().repaint();
		return cN;
	}

}
